package observer;

public class client {
    public static void main(String[] args) {
        Weixinuser weixinuser1 = new Weixinuser("zhangsan");
        Weixinuser weixinuser2 = new Weixinuser("lisi");
        Weixinuser weixinuser3 = new Weixinuser("wangwu");
        SubjectImpl subject = new SubjectImpl();
        subject.attach(weixinuser1);
        subject.attach(weixinuser2);
        subject.attach(weixinuser3);
        subject.notify("hello");
    }
}
